//by: wei_sc2
//time: 2020-09-08
//desc: 日志统计api

import request from '@/utils/request'
//获取折线图的数据
export function getLine(params) {
    return request({
        url: '/sys-monitor/log/stat',
        method: 'get',
        params: {
            param: params
        }
    })
}
//获取接口访问量排行
export function getRank() {
    return request({
        url: '/sys-monitor/log/stat/rank',
        method: 'get'
    })
}
//获取访问一个接口的平均耗时
export function getAvgTime() {
    return request({
        url: '/sys-monitor/log/stat/avg',
        method: 'get'
    })
}
//获取统计维度枚举
export function getEnum() {
    return request({
        url: '/sys-monitor/log/stat/enum',
        method: 'get'
    })
}